package com.willawn.androidtest.test;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ResultActivity extends Activity {
	private ListView lstViewResult;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.result);
		lstViewResult = (ListView)findViewById(R.id.lstViewResult);
		Intent intent = this.getIntent();
		Bundle b = intent.getBundleExtra("data");
		
		List<String> list = new ArrayList<String>();
		list.add(b.getString("username"));
		list.add(b.getString("password"));
		list.add(b.getString("gender"));
		list.add(b.getString("hobby"));
		list.add(b.getString("marriged"));
		list.add(b.getString("position"));
		ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_checked,list);
		lstViewResult.setAdapter(adapter);
	}
}
